<<<<<<< HEAD
//全局变量
const config = {
  server: {
    port: process.env.SERVER_PORT,
  },
  db: {
    db_host: process.env.DB_HOST,
    db_port: process.env.DB_PORT,
  },
  log: {
    appenders: {
      //打印的文件名子+存放路径
      cheese: { type: "file", filename: "logs/cheese.log" },
      access: { type: "file", filename: "logs/access.log" },
    },
    //打印的文件类型
    categories: {
      default: { appenders: ["cheese"], level: "info" },
      access: { appenders: ["access"], level: "info" },
    },
  },
};

export default config;
=======
const config = {
  server: {
    port: process.env.SERVER_PORT
  },
  db: {
    db_host: process.env.SERVER_PORT,
    db_name: process.env.DB_NAME,
    db_user: process.env.DB_USER,
    db_password: process.env.DB_PASSWORD,
  }
}

export default config;
>>>>>>> master
